<!DOCTYPE html>
<html lang="en"><head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1"><!-- Begin Jekyll SEO tag v2.5.0 -->
<title>This Week in Rust and WebAssembly 11 | Rust and WebAssembly</title>
<meta name="generator" content="Jekyll v3.7.4" />
<meta property="og:title" content="This Week in Rust and WebAssembly 11" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Hello and welcome to another issue of This Week in Rust and WebAssembly!" />
<meta property="og:description" content="Hello and welcome to another issue of This Week in Rust and WebAssembly!" />
<link rel="canonical" href="https://rustwasm.github.io/2019/02/21/this-week-in-rust-and-wasm-011.html" />
<meta property="og:url" content="https://rustwasm.github.io/2019/02/21/this-week-in-rust-and-wasm-011.html" />
<meta property="og:site_name" content="Rust and WebAssembly" />
<meta property="og:type" content="article" />
<meta property="article:published_time" content="2019-02-21T00:00:00+00:00" />
<script type="application/ld+json">
{"headline":"This Week in Rust and WebAssembly 11","dateModified":"2019-02-21T00:00:00+00:00","datePublished":"2019-02-21T00:00:00+00:00","description":"Hello and welcome to another issue of This Week in Rust and WebAssembly!","mainEntityOfPage":{"@type":"WebPage","@id":"https://rustwasm.github.io/2019/02/21/this-week-in-rust-and-wasm-011.html"},"url":"https://rustwasm.github.io/2019/02/21/this-week-in-rust-and-wasm-011.html","@type":"BlogPosting","@context":"http://schema.org"}</script>
<!-- End Jekyll SEO tag -->
<link rel="stylesheet" href="/assets/main.css">
        <link rel="stylesheet" href="/assets/extra.css"><link type="application/atom+xml" rel="alternate" href="https://rustwasm.github.io/feed.xml" title="Rust and WebAssembly" /></head>
<body><header class="site-header" role="banner">

        <div class="wrapper"><a class="site-title" rel="author" href="/">
            <img src="/assets/rustwasm.png" style="max-height: 2em"/>
            Rust and WebAssembly
          </a><nav class="site-nav">
              <input type="checkbox" id="nav-trigger" class="nav-trigger" />
              <label for="nav-trigger">
                <span class="menu-icon">
                  <svg viewBox="0 0 18 15" width="18px" height="15px">
                    <path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
                    <path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
                    <path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
                  </svg>
                </span>
              </label>

              <div class="trigger">
                  <a class="page-link" href="/docs.html">📚 Learn</a>
                  <a class="page-link" href="/">📖 Blog</a>
                  <a class="page-link" href="https://github.com/rustwasm/team/blob/master/README.md#get-involved">👯 Get Involved</a>
              </div>
            </nav></div>
      </header>
<div class="wrapper" style="background:rgb(245, 170, 170);border: 5px solid red;">
  This project and website is <a href="https://blog.rust-lang.org/inside-rust/2025/07/21/sunsetting-the-rustwasm-github-org/">no longer maintained</a>
</div>
<main class="page-content" aria-label="Content"><div class="wrapper">
        <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">

  <header class="post-header">
    <h1 class="post-title p-name" itemprop="name headline">This Week in Rust and WebAssembly 11</h1>
    <p class="post-meta">
      <time class="dt-published" datetime="2019-02-21T00:00:00+00:00" itemprop="datePublished">Feb 21, 2019
      </time></p>
  </header>

  <div class="post-content e-content" itemprop="articleBody">
    <p>Hello and welcome to another issue of <em>This Week in Rust and WebAssembly</em>!</p>

<p><a href="https://rust-lang.org">Rust</a> is a systems language pursuing the trifecta:
safety, concurrency, and speed.</p>

<p><a href="http://webassembly.org">WebAssembly</a> is a stack-based virtual machine and
instruction set. It is fast, safe, portable, and part of the open Web
platform. By compiling to WebAssembly, we can run Rust code on the Web!</p>

<p>This is a weekly summary of Rust and WebAssembly’s progress and community.</p>

<p>Did we miss something? Tweet to us at <a href="https://twitter.com/rustwasm">@rustwasm</a>
or <a href="https://github.com/rustwasm/rustwasm.github.io">send us a pull request</a>.</p>

<p><strong>Want to get involved in Rust and WebAssembly? <a href="https://github.com/rustwasm/team/blob/master/README.md#get-involved">Join the Rust and WebAssembly working group!</a></strong></p>

<!-- TODO: check recent r/rust and users.rust-lang.org posts for "wasm" and "webassembly": -->

<h2 id="news-and-blog-posts-from-around-the-web">News and Blog Posts from Around the Web</h2>

<p><em>Want to make sure something ends up on this list next time we publish an issue?
<a href="https://github.com/rustwasm/team/issues/79">Leave a comment on this issue.</a></em></p>

<ul>
  <li><a href="https://twitter.com/chinedufn/status/1098418821591957504">Parsing and rendering PSD files in the browser with Rust and
WebAssembly</a></li>
  <li><a href="https://twitter.com/fitzgen/status/1097941877884473344">Programmatically generating Islamic
stars</a> using the
“Polygons in Contact” method with Rust-generated Wasm and Web GL
    <ul>
      <li><a href="https://johanneshoff.com/geotoy/">Live demo</a></li>
      <li><a href="https://github.com/fitzgen/geotoy">Source</a></li>
    </ul>
  </li>
  <li><a href="https://twitter.com/AsgerNyman/status/1096389338211016705">Dust is a renderer written in Rust that has a backend for Wasm and Web
GL</a>
    <ul>
      <li><a href="https://asny.github.io/spider-web/index.html">Live demo</a></li>
      <li><a href="https://github.com/asny/Dust">Source</a></li>
    </ul>
  </li>
</ul>

<h2 id="updates-from-rustwasm">Updates from <a href="https://github.com/rustwasm"><code class="highlighter-rouge">rustwasm/*</code></a></h2>

<h3 id="rfcs">RFCs</h3>

<h4 id="new-rfcs">New RFCs</h4>

<p>None.</p>

<h4 id="merged-rfcs">Merged RFCs</h4>

<p>None.</p>

<h3 id="console_error_panic_hook"><code class="highlighter-rouge">console_error_panic_hook</code></h3>

<ul>
  <li>@fitzgen <a href="https://github.com/rustwasm/console_error_panic_hook/pull/10">added error
stacks</a> to the
message we log when a panic occurs. This works around bugs in both Safari’s
and Firefox’s developer tools consoles.</li>
</ul>

<h3 id="js-sys"><code class="highlighter-rouge">js-sys</code></h3>

<ul>
  <li>@Pauan <a href="https://github.com/rustwasm/wasm-bindgen/pull/1225">added convenience getters to
<code class="highlighter-rouge">js_sys::Reflect</code></a> for
getting properties keyed by <code class="highlighter-rouge">u32</code> and <code class="highlighter-rouge">f64</code>.</li>
</ul>

<h3 id="twiggy">Twiggy🌱</h3>

<ul>
  <li>@data-pup <a href="https://github.com/rustwasm/twiggy/pull/243">fixed some unused-result
warnings</a> in Twiggy’s parser.</li>
</ul>

<h3 id="walrus"><code class="highlighter-rouge">walrus</code></h3>

<ul>
  <li>@alexcrichton made <a href="https://github.com/rustwasm/walrus/pull/60">GC’ing unused functions, globals, etc an explicit
pass</a> in <code class="highlighter-rouge">walrus</code>. It was
previously performed implicitly as part of serializing a wasm module.</li>
  <li>@alexcrichton <a href="https://github.com/rustwasm/walrus/pull/50">implemented support for the reference types
proposal</a> and <code class="highlighter-rouge">anyref</code> in
<code class="highlighter-rouge">walrus</code>.</li>
  <li>@fitzgen <a href="https://github.com/rustwasm/walrus/pull/58">added the ability to explicitly
delete</a> various wasm constructs
(functions, tables, etc) from a wasm module, rather than just implicitly
delete them by making them unused and then running a GC.</li>
</ul>

<h3 id="wasm-bindgen"><code class="highlighter-rouge">wasm-bindgen</code></h3>

<ul>
  <li>@alexcrichton added support for <a href="https://github.com/rustwasm/wasm-bindgen/pull/1275"><code class="highlighter-rouge">Option&lt;MyRustStruct&gt;</code> in parameters and
return positions</a>.</li>
  <li>@alexcrichton <a href="https://github.com/rustwasm/wasm-bindgen/pull/1002">added experimental support for using
<code class="highlighter-rouge">anyref</code></a> in
<code class="highlighter-rouge">wasm-bindgen</code>.</li>
  <li>@fitzgen <a href="https://github.com/rustwasm/wasm-bindgen/pull/1255">fixed a
regression</a> where DWARF
debug info custom sections were always being included in the generated Wasm,
even when debug info was not enabled.</li>
  <li>@alexcrichton <a href="https://github.com/rustwasm/wasm-bindgen/pull/1256">added a
flag</a> to control whether
the producers custom section is included in the generated wasm binary or not.</li>
  <li>@ctjhoa <a href="https://github.com/rustwasm/wasm-bindgen/pull/1259">fixed some deprecation
warnings</a> around the use
of <code class="highlighter-rouge">ATOMICS_*_INIT</code> instead of <code class="highlighter-rouge">Atomic*::new</code>.</li>
</ul>

<h3 id="wasm-snip"><code class="highlighter-rouge">wasm-snip</code></h3>

<ul>
  <li>@fitzgen ported <code class="highlighter-rouge">wasm-snip</code> over to <a href="https://github.com/rustwasm/wasm-snip/pull/21">using the <code class="highlighter-rouge">walrus</code>
crate</a>. This also removes the
need to <code class="highlighter-rouge">wasm-gc</code> again after running <code class="highlighter-rouge">wasm-snip</code>.</li>
</ul>

<h3 id="web-sys"><code class="highlighter-rouge">web-sys</code></h3>

<ul>
  <li>@selaux <a href="https://github.com/rustwasm/wasm-bindgen/pull/1248">added a missing Web IDL
attribute</a> to
<code class="highlighter-rouge">HTMLMediaElement</code> so that <code class="highlighter-rouge">web-sys</code> correctly generates bindings to the
<code class="highlighter-rouge">srcObject</code> property.</li>
</ul>

<h3 id="wee_alloc"><code class="highlighter-rouge">wee_alloc</code></h3>

<ul>
  <li><a href="https://github.com/rustwasm/wee_alloc/blob/master/CHANGELOG.md#043"><strong>We released <code class="highlighter-rouge">wee_alloc</code> version 0.4.3!
🎉</strong></a>
Among other things, this version will work on stable Rust as soon as 1.33 is
released, which is scheduled for one week from today: 2019-02-28.</li>
</ul>

<h2 id="requests-for-contribution">Requests for Contribution</h2>

<p><strong>Want to get involved in Rust and WebAssembly? <a href="https://github.com/rustwasm/team/blob/master/README.md#get-involved">Join the Rust and WebAssembly
working group!</a></strong></p>

<ul>
  <li><a href="https://github.com/issues?q=is%3Aopen+is%3Aissue+user%3Arustwasm+archived%3Afalse+label%3A%22good+first+issue%22">All issues labeled “good first issue” in the <code class="highlighter-rouge">rustwasm/*</code> repositories</a></li>
  <li><a href="https://github.com/issues?q=is%3Aopen+is%3Aissue+user%3Arustwasm+archived%3Afalse+label%3A%22help+wanted%22">All issues labeled “help wanted” in the <code class="highlighter-rouge">rustwasm/*</code> repositories</a></li>
</ul>

<h3 id="new-good-first-issues">New Good First Issues</h3>

<ul>
  <li><a href="https://github.com/rustwasm/wasm-bindgen/issues/1270"><code class="highlighter-rouge">wasm-bindgen</code>: Handling <code class="highlighter-rouge">undefined</code> arguments</a></li>
  <li><a href="https://github.com/rustwasm/wasm-bindgen/issues/1276"><code class="highlighter-rouge">wasm-bindgen</code>: Add doc comments from Rust to generated TypeScript
definitions</a></li>
</ul>

  </div><a class="u-url" href="/2019/02/21/this-week-in-rust-and-wasm-011.html" hidden></a>
</article>

      </div></main><footer class="site-footer h-card">
    <data class="u-url" href="/"></data>
  
    <div class="wrapper">
  
      <h2 class="footer-heading">Rust and WebAssembly</h2>
  
      <div class="footer-col-wrapper">
        <div class="footer-col footer-col-1">
          <ul class="contact-list">
            <li class="p-name">Rust and WebAssembly</li></ul>
        </div>
  
        <div class="footer-col footer-col-2"><ul class="social-media-list"><li><a href="https://github.com/rustwasm"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#github"></use></svg> <span class="username">rustwasm</span></a></li><li><a href="https://www.twitter.com/rustwasm"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#twitter"></use></svg> <span class="username">rustwasm</span></a></li></ul>
</div>
  
        <div class="footer-col footer-col-3">
          <p>Stay up to date with events, learning resources, and recent developments in Rust and WebAssembly community.</p>
        </div>
      </div>
  
    </div>
  
  </footer><!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-85933208-2"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-85933208-2');
</script>
</body>

</html>
